home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Format CD 42
/
Amiga Format AFCD42 (Issue 126, Aug 1999).iso
/
-serious-
/
comms
/
other
/
slrn
/
slrn_src
/
slrnpull
/
slrnpull.sh
< prev
Wrap
Linux/UNIX/POSIX Shell Script
|
1999-05-14
|
811b
|
31 lines
#!/bin/sh
# I run this file from cron every night to pull a few newsgroups from my
# news server. It does the following:
#
# 1. Runs slrnpull in expire mode to expire old articles
# 2. Starts up ppp via a ppp-on script (not provided)
# 3. Runs slrnpull to grab articles from the server
# 4. Turns off ppp via a ppp-off script (not provided)
# Configuration variables. Change these!!!
dir=/var/spool/news
server=news.mit.edu
slrnpull=/home/john/src/slrn/src/objs/slrnpull
#----------------------------------------------------------------------------
# Make sure that all files will be readable by others
umask 022
# Before getting new articles, perform expiration.
$slrnpull -d $dir --expire
if /usr/sbin/ppp-on; then
$slrnpull -d $dir -h $server
/usr/sbin/ppp-off
else
exit 1
fi